import { http } from '@/utils/http.ts'
import type { WxLoginVo } from '@/types/wxLogin'

/**
 * 封装登录接口
 */
export const userLoginApi = (code: string) => {
  return http<WxLoginVo>({
    url: '/user/login',
    method: 'GET',
    data: {
      code,
    },
  })
}
